package com.qidianit.mes.pro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.pro.Process;
import com.qidianit.mes.pojo.Result;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: YKYB
 * @Date: 2025/9/17 18:02
 * @Description:
 */
@Transactional
public interface ProcessService {
    Result<PageInfo<Process>> selectList(Process process, int pageNum, int pageSize);

    Result<Process> addProcess(Process process);

    Result<Process> getByProcessCode(String code);

    /**
     * 根据id删除工序
     */
    Result<?> deleteById(Long id);

    /**
     * 根据id批量删除工序
     */
    Result<?> batchDeleteByIds(List<Long> ids);

    /**
     * 根据id编辑工序
     */
    Result<?> updateById(Process process);
}
